package com.nlp.visualization.service;

import java.util.Date;

/**
 * @author LXM
 * @Title: NLPVisualizationTools
 * @Description:
 * @date 2018/5/11下午9:27
 */

public interface IJWTService {

    /**
     * 获取一个token
     *
     * @return
     */
    String buildJwt(Date exp);

    /**
     * 验证token是否有效
     *
     * @param jwt
     * @return
     */
    boolean isJwtValid(String jwt, String role);


}
